<?php echo $this->element('user_menu');?>      
<?php echo $this->element('banner', array('category' => 'resume'));?>
<div id="body_container" class="group">
	    <div id="left_container">
<?php echo $this->element('advertisement',array('category' => 'resume'));?>
<?php echo $this->element('left_bar');?>  
<div id="mid_container">
<div class="staffs form">
<?php echo $this->Form->create('Staff', array('action' => 'save'));?>
	<fieldset>
		<legend><?php __('Personal Details'); ?></legend>
	<?php
		echo $this->Form->input('JobDetail.JobDetail', array('type' => 'hidden', 'value' => isset($job_no)?$job_no:''));
		echo $this->Form->input('kanji', array('label' => __('Kanji', true)));
		echo $this->Form->input('furigana', array('label' => __('Furigana', true)));
		echo $this->Form->input('gender', array('label' => __('Gender', true), 'type' => 'radio', 'options' => array(1=>'Male',2=>'Female')));
		echo $this->Form->input('birthdate', array('label' => __('Birth Date', true)));
		echo $this->Form->input('zip', array('label' => __('ZIP Code', true)));
		echo $this->Form->input('state', array('label' => __('State', true)));
		echo $this->Form->input('address', array('label' => __('Address', true)));
		echo $this->Form->input('building', array('label' => __('Building', true)));
		echo $this->Form->input('nearstation', array('label' => __('Near Station', true)));
		echo $this->Form->input('transportmedia', array('label' => __('Transport Media', true)));
		echo $this->Form->input('time', array('label' => __('Time', true)));
		echo $this->Form->input('phone', array('label' => __('Phone Number', true)));
		echo $this->Form->input('mobile', array('label' => __('Mobile Number', true)));
		echo $this->Form->input('pcemail', array('label' => __('Email', true)));
		echo $this->Form->input('jobexperience', array('label' => __('Experiance', true)));
		echo $this->Form->input('qualifications', array('label' => __('Qualification', true)));
		echo $this->Form->input('pr', array('label' => __('PR', true)));
		echo $this->Form->input('questions', array('label' => __('Your Questions??', true)));
		echo $this->Form->input('skill', array('label' => __('Skills', true)));
	?>
	</fieldset>
		<fieldset>
			<legend><?php __('Your Conditions For Job'); ?></legend>
		<?php
			echo $this->Form->input('StaffCondition.startday', array('label' => __('Start Date', true)));
			echo $this->Form->input('StaffCondition.duration', array('label' => __('Duration', true)));
			echo $this->Form->input('StaffCondition.schedule', array('label' => __('Schedule', true)));
			echo $this->Form->input('StaffCondition.field', array('label' => __('Field', true)));
			echo $this->Form->input('StaffCondition.others', array('label' => __('Others', true)));
		?>
		</fieldset>
		<fieldset>
			<legend><?php __('Past Experiance'); ?></legend>
				<?php
					echo $this->Form->input('StaffCarrer.company',array('label' => __('Company',true)));
					echo $this->Form->input('StaffCarrer.status', array('label' => __('Status', true)));
					echo $this->Form->input('StaffCarrer.starteddate', array('label' => __('Start Date', true)));
					echo $this->Form->input('StaffCarrer.enddate', array('label' => __('End Date', true)));
					echo $this->Form->input('StaffCarrer.jobtype', array('label' => __('Job Type', true)));
					echo $this->Form->input('StaffCarrer.jobdescr', array('label' => __('Job Description', true)));
				?>
	</fieldset>
	<fieldset>
		<legend><?php __('Your Skills');?></legend>
		<?php
			 foreach($languages as $key => $value):
			 	$options = array();
			 	foreach($value['LanguageLevel'] as $language):
			 		$options[$language['id']] = $language['name']; 
			 	endforeach;
			 	echo $this->Form->input('Staffoa.'.$value['LanguageSkill']['id'].'.language_skill', array('label' => $value['LanguageSkill']['name'], 'type' => 'select', 'options' => $options , 'empty' => true));
			 	unset($options);
			 endforeach;
			 foreach($oaskills as $key => $value):
			 	echo $this->Form->input('oaskill.' . $key . '.oa_skills', array('label' => $value, 'type' => 'select', 'options' => $skills , 'empty' => true));
			 endforeach;
		?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
</div>
<div id="third_container">
    <?php echo $this->element('search');?>
    <?php echo $this->element('success');?>
      <?php echo $this->Html->image('post_your_resume.jpg');?>
</div>
